//
//  RSWDataOperation+WorkSummary.h
//  RSW.IOS
//
//  Created by zhaiqiuqiu on 16/12/22.
//  Copyright © 2016年 com.xtion.crm. All rights reserved.
//

#import "RSWDataOperation.h"

@interface RSWDataOperation (WorkSummary)

-(void)addWorkSummary:(WorkSummaryInfo*)info completion:(void(^)(NSInteger nResult,BOOL result,NSError *error))completion;

-(void)getMyWorkSummarySourceType:(WorkSummarySourceType)sourceType pageIndex:(NSInteger)pageIndex pageSize:(NSInteger)pageSize completion:(void(^)(NSInteger nResult,NSArray *list,NSError *error))completion;

-(void)getWorkSummaryCommentById:(NSString*)workSummaryId isView:(BOOL)isView completion:(void(^)(NSInteger nResult,NSArray *list,NSError *error))completion;

extern NSString *const RSWDataOperationWorkSummaryModifyNotification;
-(void)modifyWorkSummary:(WorkSummaryInfo*)info completion:(void(^)(NSInteger nResult,BOOL result,NSError *error))completion;

extern NSString *const RSWDataOperationWorkSummaryDeleteNotification;
-(void)deleteWorkSummary:(WorkSummaryInfo*)info completion:(void(^)(NSInteger nResult,BOOL result,NSError *error))completion;

extern NSString *const RSWDataOperationWorkSummaryCommentNotification;
-(void)commentWorkSummary:(WorkSummaryInfo*)info commentContent:(NSString*)commentContent completion:(void(^)(NSInteger nResult,BOOL result,NSError *error))completion;
@end
